// import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
	path: '/dashboard',
	name: 'dashboard',
	//  component: DEFAULT_LAYOUT,
	redirect: '/dashboard/home',
	meta: {
		locale: '首页',
		ignoreCache: true,
		requiresAuth: true,
		roles: '*',
		icon: 'icon-dashboard',
		order: 0,
		hideInMenu: false,
	},
	children: [{
		path: 'home',
		name: 'home',
		component: () =>
			import('@/views/home/index.vue'),
		meta: {
			locale: '首页',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'dashboard'
		},
	},
	{
		path: 'user',
		name: 'user',
		component: () =>
			import('@/views/user/index.vue'),
		meta: {
			locale: '个人中心',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'user'
		},
		},
	{
		path: 'saveRest',
		name: 'saveRest',
		component: () =>
			import('@/views/saveRest/index.vue'),
		meta: {
			locale: '时间锁定',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'saveRest'
		},
		},
		{
		path: 'Scheduling',
		name: 'Scheduling',
		component: () =>
			import('@/views/Scheduling/index.vue'),
		meta: {
			locale: '排班管理',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'Scheduling'
		},
		},
		{
		path: 'Schedulingnew',
		name: 'Schedulingnew',
		component: () =>
			import('@/views/Scheduling/indexnew.vue'),
		meta: {
			locale: '日盘班未开始',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'Schedulingnew'
		},
		},
		{
		path: 'Schedulingold',
		name: 'Schedulingold',
		component: () =>
			import('@/views/Scheduling/indexold.vue'),
		meta: {
			locale: '日盘班已结束',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'Schedulingold'
		},
		},
	


	],
};

export default DASHBOARD;


